import * as API from './index'

export const getProduct_categories=(params)=>{
    return API.GET('/api/v1/products',params)
}
export const getdetail=(url)=>{
    return API.GET(`/api/v1/products/${url}`)
}
export const getcart=()=>{
    return API.GET('/api/v1/shop_carts')
}
export const addcart=(params)=>{
	return API.POST('/api/v1/shop_carts',params)
}

export const addresses=(params)=>{
	return API.POST('/api/v1/addresses',params)
}
export const getresseslist=()=>{
    return API.GET('/api/v1/addresses')
}
export const getresses=(url)=>{
    return API.GET(`/api/v1/addresses/${url}`)
}
export const deletecart=(url)=>{
    return API.DELETE(`/api/v1/shop_carts/${url}`)
}